<?xml version="1.0" encoding="UTF-8"?>
<ui:composition   xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:h="http://java.sun.com/jsf/html"
                  xmlns:ui="http://java.sun.com/jsf/facelets"
                  xmlns:p="http://primefaces.prime.com.tr/ui"
                  xmlns:f="http://java.sun.com/jsf/core">
                  
    
  
    <h:form id ="menuLeft" prependId="false">
            <p:menu style="width:11em" styleClass = "box-shadow" >   
                <p:submenu  label="Categories" >  
                    <p:menuitem  value="Action" ajax ="false"  actionListener = "#{leftMenuControllerBean.search(evt,'Action')}" action = "#{leftMenuControllerBean.navigate}"/>
                    <p:menuitem  value="Comedy" ajax ="false"  actionListener = "#{leftMenuControllerBean.search(evt,'Comedy')}" action = "#{leftMenuControllerBean.navigate}"/>
                    <p:menuitem  value="Drama" ajax ="false"  actionListener = "#{leftMenuControllerBean.search(evt,'Drama')}" action = "#{leftMenuControllerBean.navigate}"/>
                    <p:menuitem  value="Thriller" ajax ="false"  actionListener = "#{leftMenuControllerBean.search(evt,'Thriller')}" action = "#{leftMenuControllerBean.navigate}"/>
                    <p:menuitem  value="Sport" ajax ="false"  actionListener = "#{leftMenuControllerBean.search(evt,'Sport')}" action = "#{leftMenuControllerBean.navigate}"/>
                    <p:menuitem  value="Crime" ajax ="false"  actionListener = "#{leftMenuControllerBean.search(evt,'Crime')}" action = "#{leftMenuControllerBean.navigate}"/>
                    <p:menuitem  value="Adventure" ajax ="false"  actionListener = "#{leftMenuControllerBean.search(evt,'Adventure')}" action = "#{leftMenuControllerBean.navigate}"/>
                    <p:menuitem  value="Romance" ajax ="false"  actionListener = "#{leftMenuControllerBean.search(evt,'Romance')}" action = "#{leftMenuControllerBean.navigate}"/>
                    <p:menuitem  value="History" ajax ="false"  actionListener = "#{leftMenuControllerBean.search(evt,'History')}" action = "#{leftMenuControllerBean.navigate}"/>
                    <p:menuitem  value="Horror" ajax ="false"  actionListener = "#{leftMenuControllerBean.search(evt,'Horror')}" action = "#{leftMenuControllerBean.navigate}"/>
                 </p:submenu>
            </p:menu>
            
        </h:form>
</ui:composition>